package com.demo.webflux.datar2bdc;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.demo.webflux.domain.Test;

import reactor.core.publisher.Flux;

@RestController
public class BookController {

	private static Logger logger = LoggerFactory.getLogger(BookController.class);
	@Autowired
	private BookRepository bookRepository;

	@GetMapping("/rule")
	public Flux<Test> save(){
		return bookRepository.findBooks("java编程思想");
	}

}
